<#include "/common/_layout.html"/>
<@layout/>
<script type="text/javascript" src="${ctx}/static/js/accountCaption.js"></script>
</head>
<body class="easyui-layout">
<table id="tg" title="会计科目列表" data-options="toolbar:'#toolbar',singleSelect: false">
	<thead>
		<tr>
			<th data-options="field:'id',hidden:true">id</th>
			<th width="25%" data-options="field:'name'">会计科目名称</th>
			<th align="center" data-options="field:'captionId'" width="15%">编号</th>
			<th align="center" width="20%" data-options="field:'category'">类别</th>
			<th align="center" width="10%" data-options="field:'balanceDirection'">余额方向</th>
			<th align="center" width="20%" data-options="field:'status',formatter:function(value,row,index){if(value=='1'||value==1){return '已启用';}else{return '未启用'}}">状态</th>
			<th align="center" width="100" data-options="field:'parentId',hidden:true">上级菜单</th>
			<th align="center" width="10%" data-options="field:'isUse',formatter:function(value,row,index){if(value=='1'||value==1){return '已使用';}else{return '未使用'}}">使用状态</th>
		</tr>
	</thead>
</table>

<div id="toolbar" style="padding:5px;height:auto;">
    <div style="display:inline;margin-left:5px;">
	  <a class="easyui-linkbutton"  id="add" data-options="iconCls:'icon-add',plain:true">添加</a><span class="toolbar-item dialog-tool-separator"></span>
	  <a class="easyui-linkbutton" id="del" data-options="iconCls:'icon-remove',plain:true">删除</a><span class="toolbar-item dialog-tool-separator"></span>
	  <a class="easyui-linkbutton" id="edit" data-options="iconCls:'icon-edit',plain:true">修改</a>
	</div>
</div>

<div id="addDialog" class="easyui-dialog" data-options="closed:true,modal:true,maximizable:true" style="width:380px;height:350px;">
<#include "add.html"/>
</div>

</body>
</html>